import request from '@/utils/request'
export default{
    // 根据查询条件获取教师列表
    getTeacherListCondition(current,limit,teacherQuery){
        return request({
            url:`eduservice/teacher/queryTeacherCondition/${current}/${limit}`,
            method:'post',
            data:teacherQuery
        })
    },
    // 根据教师Id删除教师
    removeTeacherById(id){
        return request({
            url:`eduservice/teacher/${id}`,
            method:'delete'
        })
    },
    // 保存教师
    saveTeacher(teacher){
        return request({
            url:"eduservice/teacher",
            method:"post",
            data:teacher
        })
    },
    // 根据教师Id查询教师
    queryTeacherById(id){
        return request({
            url:`eduservice/teacher/${id}`,
            method:"get"
        })
    },
    // 更新教师
    updateTeacher(teacher){
        return request({
            url:"eduservice/teacher",
            method:"put",
            data:teacher
        })
    }
}